package yourobot.bonus;

import java.awt.Color;

import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.World;

import yourobot.robots.Player;

/**
 * 
 * @author mehdimasrour
 *
 */
public interface Bonus {
	
	public static enum BonusType{
		BOMB, LEURRE, SNAP
	};
	
	/**
	 * 
	 * @param w World in which the bonus has to be used
	 * @param p Player using the bonus
	 */
	public void useBonus(World w, Player p);
	
	/**
	 * 
	 * @return the type of bonus (bomb, leurre, snap)
	 */
	public BonusType getType();
	
	/**
	 * 
	 * @return the position of the bonus in the level
	 */
	public Vec2 getPosition();
	
	/**
	 * 
	 * @return the color of the bonus (used only for bombs atm)
	 */
	public Color getColor();
}
